<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Ordertask extends Model
{

    protected $fillable = ['orderId', 'deliveryDate', 'startDate','endDate', 'goodsId', 'goodsName','alloted', 'output','finished','storage', 'unit','notes','realFinish'];

    public function tasks()
    {
        return $this->hasMany('App\Task', 'orderTaskId');
    }
    public function order(){
        return $this->belongsTo('App\Order', 'orderId');
    }
}
